//
//  ClassScheduleTitle.m
//  iBaby365v2
//
//  Created by Kirinrin on 14-6-30.
//  Copyright (c) 2014年 suplus. All rights reserved.
//

#import "ClassScheduleTitle.h"

@interface ClassScheduleTitle()


@end

@implementation ClassScheduleTitle

- (id)initWithFrame:(CGRect)frame
{
    NSLog(@"initWithFrame");
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
    }
    return self;
}

-(void)awakeFromNib{
    NSLog(@"awakeFromNib");
    [super awakeFromNib];
    
    self.titleLabel.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"28课程表-标头"]];

}

-(void)setTitle:(NSString *)title{
    [_titleLabel setText: title];
    
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
